<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-clock指令</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <style>
        [v-clock]{
            display: none;
        }
    </style>
</head>
<body>
    <div id="root">
        <h3 v-clock>{{name}}</h3>
    </div>
    <script type="text/javascript" src="http://localhost:8080/resource/5s/vue.js"></script>
</body>
<script type="text/javascript">
    Vue.config.productionTip=false;
    
    new Vue({
        el:'#root',
        data:{
           name:'小慧'
        }
    })
</script>
</html>